﻿using AutoMapper;
using Bee.Dto;
using Bee.Repository;
using Bee.ServiceContracts;
using System.Collections.Generic;

namespace Bee.Applications
{
    public class LinkCrawlerTmpl : ILinkCrawlerService
    {
        private ILinkCrawlerInterface linkRepository;
        public LinkCrawlerTmpl()
        {
            this.linkRepository = new LinkCrawlerServer();
        }
        public List<LinkDto> GetLinks(string url)
        {
            return Mapper.Map<List<LinkDto>>(linkRepository.GetLinks(url));
        }
    }
}
